Skip to contentSkip to conversation

"Star Ruler 2" game will freeze the system

Bug 99019 [email protected] 1 participant 10 messages Dec 7, 2016 – Jan 24, 2017

lore
Share & tools
lore
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=99019

Bug ID: 99019
Summary: "Star Ruler 2" game will freeze the system
Product: Mesa
Version: 13.0
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: NEW
Severity: major
Priority: medium
Component: Drivers/Gallium/radeonsi
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]

Overview:
"Star Ruler 2" freezes the system immediately after choosing "New Game". This forces the user to hit the reset on the computer.

Steps to reproduce:
The game will load to the menu screen and as soon as you double click for "New Game" the system will freeze.

Linux and Hardware:
This problem has been experienced on Ubuntu 16.10 -- using AMD's R9 Fury, RX470, and RX470 graphic cards.

Mesa Builds:
The problem has been reproduced on Mesa 13.0.2 (git-2722144) and Mesa 13.0.1 (git-f2f487e)

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#1 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=99019

--- Comment #1 from smoki <[email protected]> ---

I remember this game has some shader fallback option in settings file, if true
that stopped freezing with radeonsi drivers.

So seems some issue with shaders by default.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=99019

--- Comment #2 from smoki <[email protected]> ---
Created attachment 128387
--> https://bugs.freedesktop.org/attachment.cgi?id=128387&action=edit
Shaders

Attached those two shaders if someone wanna investigate this.

"gui_skin_ps.txt" is that default and makes driver freeze, but falback one is
"gui_skin_simple_ps.txt" work fine.

Both works fine with AMD propertiary drivers.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=99019

--- Comment #3 from Nicolai Hähnle <[email protected]> ---
Could you provide an apitrace that reproduces the hang? That'll help track this down eventually.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=99019

--- Comment #4 from smoki <[email protected]> --- (In reply to Nicolai Hähnle from comment #3)

Quoted 2 lines

Could you provide an apitrace that reproduces the hang? That'll help track this down eventually.

Here we go, just starting app and clicking on New Game:

https://www.dropbox.com/s/rje3xylvyablt4p/StarRuler2-trace.xz?dl=0

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#5 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=99019

--- Comment #5 from Samuel Pitoiset <[email protected]> --- Confirmed, it hangs the GPU at draw call 15626. Tested on RX 480 with latest mesa/llvm.

Replacing gui_skin_ps.txt by gui_skin_simple_ps.txt with qapitrace fixes the hang.

Not sure yet if the shader is miscompiled or if something is not currently bound.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#6 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=99019

--- Comment #6 from Marek Olšák <[email protected]> --- The shader ends up in an infinite loop because of this:

...

        v_cmpx_le_f32_e32 vcc, 0, v0
        s_branch BB0_30
        s_cbranch_execnz BB0_30

; BB#29:
exp null off, off, off, off done vm
s_endpgm
BB0_30: ; %endif110
...

s_branch shouldn't be there. It prevents killing the wave early and the loop that follows is infinite, because it starts with EXEC=0.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#7 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=99019

--- Comment #7 from Samuel Pitoiset <[email protected]> --- Thanks for the info Marek, this helped me to figure out the issue.

I have a fix locally for that hang, will think more before sending it though.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#9 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=99019

Samuel Pitoiset <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #9 from Samuel Pitoiset <[email protected]> --- Should be fixed by
https://github.com/llvm-mirror/llvm/commit/e8e3365d5266760f3d7ad247f21496bb69cfef39.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel